package com.buba.service;

import entity.maintenance.MaintenanceProgram;
import com.baomidou.mybatisplus.extension.service.IService;
import entity.maintenance.dto.MaintenanceProgramDto;
import utils.pageutil.PageResult;

import java.util.List;

/**
 * <p>
 * 保养项目 服务类
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
public interface MaintenanceProgramService extends IService<MaintenanceProgram> {
    /**
     * 分页模糊全查保养项目列表
     * @param maintenanceProgramDto
     * @return
     */
    PageResult selMaintenanceProgram(MaintenanceProgramDto maintenanceProgramDto);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    boolean delMaintenanceProgram(List<Integer> ids);

    /**
     * 新增保养项目
     * @param maintenanceProgram
     * @return
     */
    boolean insMaintenanceProgram(MaintenanceProgram maintenanceProgram);

    /**
     * 编辑保养项目
     * @param maintenanceProgram
     * @return
     */
    boolean updateMaintenanceProgram(MaintenanceProgram maintenanceProgram);
}
